<h1 class="title">Liste des clubs de tennis de table</h1>

<table>
    <thead>
        <tr>
            <th>Position relative</th>
            <th>Nom</th>
            <th>Ville</th>
            <th>N° du club</th>
            <th>Site web</th>
        </tr>
    </thead>
    <tbody>
        <?php
        $i=0;
        foreach($clubList as $club){
        ?>
        <tr class="l_<?php echo $i%2 ?>">
            <td><?php echo $i+1?></td>
            <td><?php echo $club['name']?></td>
            <td><?php echo (!empty($club['City']) ? $club['City']['name']  : "-") ?></td>
            <td><?php echo $club['club_number']?></td>
            <td><a href="<?php echo $club['website']?>"><?php echo $club['website']?></a></td>
        </tr>

        <?php
        $i++;
        }?>
    </tbody>

</table>